﻿using MN.Framework.Common;
using MN.Framework.Common.Security;
using MN.Framework.MetaData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace MN.Framework.Common.Security
{

    [EntityHeader("کاربران")]
    public class User : BaseEntity,IUser
    {
        public override int  ID { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public virtual ICollection<UsersInRole> UsersInRoles { get; set; }

        public User()
        {
            this.UsersInRoles = new HashSet<UsersInRole>();
        }

        public override void GetColumns(List<ColumnInfo> columns)
        {
            columns.Add(new NumericColumnInfo("ID", "شناسه", true));
            columns.Add(new TextColumnInfo("Username", "نام کاربری"));
            columns.Add(new TextColumnInfo("Password", "رمز عبور"));
        }
    }
}
